package com.jiepos.mpos.biz.outservice.controller;


import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.jiepos.mpos.biz.outservice.service.ServiceInterMchntService;
import com.jiepos.mpos.common.entity.App_Ins_InfEntity;
import com.jiepos.mpos.common.entity.App_Service_Inter_MchntEntity;
import com.jiepos.mpos.core.controller.BaseController;
import com.jiepos.mpos.core.entity.Pagination;

/**
 *
 *
 * <p>标题: —— 控制器</p>
 * <p>模块: 通用平台</p>
 * <p>版权: Copyright (c) 2017 江苏杰博实信息技术有限公司
 * @ProjectName:  [mpos]
 * @Package com.jiepos.mpos.biz.
 * @author 余翼膑
 * @version 1.0
 * @since 2018年02月28号
 * @history（历次修订内容、修订人、修订时间等）
 */

@Controller
@RequestMapping("servicemchnt")
public class ServiceInterMchntController extends BaseController {

    @Autowired
    private ServiceInterMchntService serviceInterMchntService;


    /**
     * 进入列表页面
     * @param request
     * @param response
     * @param pagination
     * @return
     */
    @RequestMapping("/getServicemchntList.do")
    public ModelAndView getServicemchntList(HttpServletRequest request, HttpServletResponse response, Pagination pagination){

        ModelAndView model = new ModelAndView("/module/outservice/servicemchnt/servicemchnt_list");
        return super.getDetail(request, response, model);
    }

    /**
     * 查询列表信息json数据
     * @param pagination
     * @param appServiceInterMchntEntity
     * @return
     */
    @RequestMapping("/servicemchntListJson.do")
    public @ResponseBody
    Map getServicemchntListJson(HttpServletRequest request, Pagination pagination, App_Service_Inter_MchntEntity appServiceInterMchntEntity,App_Ins_InfEntity infEntity){
        return serviceInterMchntService.getServicemchntList(request,pagination, appServiceInterMchntEntity,infEntity);
    }

}
